import LineEdit  from "./EditComponents/LineEdit"
import CustomShape from './EditComponents/CustomShape'

const RightEdit = (props) => {
  const { selectDom, layer } = props
  if (!selectDom) return undefined
  if (selectDom.attrs.type === 'line') {
    return <LineEdit selectDom={selectDom} layer={layer}/>
  }
  if (selectDom.attrs.type === 'customShape') {
    return <CustomShape selectDom={selectDom} layer={layer} />
  }
  return undefined
}

export default RightEdit